<div class="container">
      <div class="row">
        <div class="col-md-12">
          <div class="panel panel-visible">
            <div class="panel-heading">
              <div class="panel-title hidden-xs"> <img src="<?php echo $baseurl.'public/theme/default/img/list.png'?>" alt="user avatar" width="28" height="28" /></span> Danh sách thuyền viên</div>
              
              <div style="float: right;"><button onclick="window.location='<?php echo $baseurl.'add-crew.html'?>'" type="button" class="btn btn-info btn-gradient btn-sm">Thêm thuyền viên</button></div>
            </div>

            <div class="panel-body padding-bottom-none">
              <table class="table table-striped table-bordered table-hover" id="datatable">
                <thead>
                  <tr style="background: #CCC;color: #FFF">
                    <th style="width: 5%">No</th>
                    <th style="width: 20%">Image</th>
                    <th style="width: 25%">Full Name</th>
                    <th style="width: 10%">Rank</th>
                    <th style="width: 15%">D.O.B</th>
                    <th style="width: 15%">Signed On</th>
                    <th style="width: 10%" class="text-center">Action</th>
                  </tr>
                </thead>
                <tbody>
                <?php $i = 1; foreach($data AS $el=>$le):?>
                  <tr id="<?php echo $le->crew_id?>">
                    <td><center><?php echo $page == 0 ? $i : ($page++) + 1;?></center></td>
                    <td><center> <?php if($le->img): ?> <img style="width: 100px;height: 66px" src="<?php echo $baseurl.$le->img ?>" /><?php endif; ?></center></td>
                    <td> <?php echo $le->fullname ?></td>
                    <td><?php echo $le->rank ?></td>
                    <td><?php echo date("d-m-Y", strtotime($le->date_of_birth)); ?></td>
                    <td><?php echo date("d-m-Y", strtotime($le->signed_on_date)); ?></td>
                    <td class="text-center"><div class="btn-group">
                        <span class="ico-edit"><img src="<?php echo $baseurl.'public/theme/default/img/edit.png'?>" alt="user avatar" width="18" height="18" title="Sửa" onclick="editCrew('<?php echo $le->crew_id ?>');" /></span>
                        <span class="ico-delete"><img src="<?php echo $baseurl.'public/theme/default/img/erase.png'?>" alt="user avatar" width="18" height="18" title="Xóa" onclick="deleteCrew('<?php echo $le->crew_id ?>');" /></span>
                    </td>
                  </tr>
                <?php $i++; endforeach;?>
                </tbody>
              </table>
              <div class="pagination">
                <?php echo $this->pagination->create_links();?> 
            </div>
            </div>
          </div>
        </div>
      </div>
    </div>